package com.thread;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @Author WaveHi
 * @Date 18/8/2021 上午 9:25
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description Test the use of thread pool
 */
public class TestThreadPool {

    public static void main(String[] args) {

        //获取线程池
        //测试ExecutorService接口
        //测试ThreadPoolExecutor
        ThreadPoolExecutor threadPoolExecutor = null;


        //测试Executor接口
        ExecutorService executorService = Executors.newFixedThreadPool(2);

        //测试Executors
        Executors e = null;

    }

}
